# import os
# import time
# print(f'子进程:{os.getpid()}')
# print(f'主(父)进程:{os.getppid()}')
# time.sleep(50)



# from multiprocessing import Process
# import time
# import os
#
# def task(name):
#     print(f'子进程:{os.getpid()}')
#     print(f'主进程:{os.getppid()}')
#
#
#
# if __name__ == '__main__':
#     p = Process(target=task,args=('常鑫',))  # 创建一个进程对象
#     p.start()
#     # print('==主开始')
#     print(f'====主{os.getpid()}')
